<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript">
function getDate() {
	var date = new Date();
	return date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate();
}

function setDate() {
	var date1 = document.getElementById('date1');
	var date2 = document.getElementById('date2');
	
	if(date1 == undefined || date2 == undefined) return;
	date1.innerHTML = getDate();
	date2.innerHTML = getDate();
}
</script>
</head>
<body onload="setDate();window.print()">
	<p align="center"><b>报名合同 </b></p>
    <b>尊敬的<s:property value="parent"/>家长： </b><br /><br />
    <b>很高兴您为孩子选择了小舞台！ 您给孩子报名的是<s:property value="startDate"/>开始的小舞台如下课程： </b><br /><br />
	<table>
	<s:iterator value="elects" status="i">
		<tr>
		<td width="33%">
			<s:property value="oaSubject.displayName"/>
		</td>
		<td width="33%">原价 ￥<s:property value="oaSubject.price"/></td>
		<td width="33%">实收 ￥<s:property value="price"/></td>
		</tr>
	</s:iterator>
	</table>
		另赠送<s:iterator value="pelects" status="i"><s:if test="!#i.first">、</s:if><s:property value="oaSubject.displayName"/></s:iterator>，
		价值￥<s:iterator value="pelects" status="i"><s:if test="!#i.first">、</s:if><s:property value="price"/></s:iterator>。
		<jsp:include page="/signup/contract.html" flush="false"></jsp:include><br/><br/><br/>
	<table width="100%">
		<tr>
			<td width="50%">
				<b>监护人签名：</b>
			</td>
			<td width="50%">
				<b>培训中心：</b>
			</td>
		</tr>
		<tr>
			<td>
				<b>日期：</b><span id="date1"></span>
			</td>
			<td>
				<b>日期：</b><span id="date2"></span>
			</td>
		</tr>
	</table>
</body>
</html>